//
//  RecommendView.m
//  MedicalTip
//
//  Created by 徐潇 on 15/4/13.
//  Copyright (c) 2015年 徐潇. All rights reserved.
//

#import "RecommendView.h"

@implementation RecommendView

- (instancetype)initWithFrame:(CGRect)frame newsArray:(NSMutableArray *)newsArray
{
    self = [super initWithFrame:frame];
    if (self) {
       // self.foodArray = [NSMutableArray array];
        self.newsArray = [NSMutableArray array];
        self.newsArray = newsArray;
        [self createSubviews];
    }
    return self;
}

- (void)createSubviews
{
    
    self.myView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.myView.backgroundColor = [UIColor redColor];
    [self addSubview:self.myView];
    [_myView release];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
